GXFinishPage
You can use theGXFinishPage
function to notify QuickDraw GX that you have finished capturing shapes for the page.
void GXFinishPage (gxJob aJob);
aJob
- A reference to the job object being printed.
DESCRIPTION
You should call theGXFinishPage
function after you have finished drawing the data for a page using theGXDrawShape
function. In theaJob
parameter, you specify the job object being printed.After you call the
GXFinishPage
function for the final page to be printed, call theGXFinishJob
function to notify QuickDraw GX that printing is complete.SPECIAL CONSIDERATIONS
You should only call theGXFinishPage
function if theGXStartPage
function doesn't return errors.RESULT CODES
In addition to the following result codes, you may also receive errors that can occur while flattening graphics objects during spooling. Flattening graphics objects is described in the shape objects chapter of Inside Macintosh: GX Objects.
gxPrUserAbortErr The user has canceled printing. gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. SEE ALSO
Listing 2-6 on page 2-23 shows how to use theGXFinishPage
function to tell QuickDraw GX that you have finished capturing shapes.The
GXStartPage
function is described in the previous section.The
GXDrawShape
function is discussed in the shape objects chapter of Inside Macintosh: GX Objects.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help